Problem with settings of Proxy

Problem with settings of Proxy

am 22.09.2009 12:55:36 von Petr Hracek

--00c09f7d5a832b845404742870a7
Content-Type: text/plain; charset=UTF-8

Hello *,

sorry for bother you with this question but I would like to ask you if it's
possible to setup Proxy as is mentioned below.

In the my configuration file of Apache 2.2.10 is for setting up my
application.
ProxyPassReverse /myapplication/
http://127.0.0.1:10000/
ProxyPassReverse /myapplication/
http://localhost:10000/
RewriteRule ^/myapplication$ http://127.0.0.1:10000/[P]
RewriteRule ^/myapplication/(.*)
http://127.0.0.1:10000/$1[P]

It is working correctly without problem.

I would like to add another proxy but I do not know how?
When to user will start URL with https:///wbm_ then new_ip should be called in the new window so that https:///
will be opened.

RewriteRules are:
RewriteRule ^/wbm_(.*)$ http://$1 [P]
RewriteRule ^/wbm_(.*)/(.*) http://$1/$2 [P]

Is it possible to write down to the configuration file of apache following:
ProxyPassReverse /wbm_(.*)/ http://$1/

Or is there any other way how to do that?

Thank you in advance

--00c09f7d5a832b845404742870a7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello *,

sorry for bother you with this question but I would like to=
ask you if it's possible to setup Proxy as is mentioned below.

=
In the my configuration file of Apache 2.2.10 is for setting up my applicat=
ion.

ProxyPassReverse    /my=
application/    "http://127.0.0.1:10123/">http://127.0.0.1:10000/
ProxyPassReverse=
   =20
/myapplication/    =3D"http://localhost:10123/">http://localhost:10000/
RewriteRule=20
^/myapplication$ 0.1:10123/">http://127.0.0.1:10000/ [P]
RewriteRule=20
^/myapplication/(.*) 127.0.0.1:10123/$1">http://127.0.0.1:10000/$1=20
[P]

It is working correctly without problem.

I w=
ould like to add another proxy but I do not know how?
When to user will =
start URL with https://<ipaddress>/wbm_<new_ip/
then new_ip sho=
uld be called in the new window so that https://<new_ip>/ will be ope=
ned.


RewriteRules are:
RewriteRule ^/wbm_(.*)$     ht=
tp://$1 [P]
RewriteRule ^/wbm_(.*)/(.*)    http://$1/$2=
  [P]

Is it possible to write down to the configuration file of=
apache following:
ProxyPassReverse /wbm_(.*)/ http://$1/


Or is there any other way how to do that?

Thank you in advance r>


--00c09f7d5a832b845404742870a7--

Re: Problem with settings of Proxy

am 22.09.2009 13:41:12 von Nick Kew

Petr Hracek wrote:
> Hello *,
>
> sorry for bother you with this question but I would like to ask you if
> it's possible to setup Proxy as is mentioned below.
>
> In the my configuration file of Apache 2.2.10 is for setting up my
> application.
> ProxyPassReverse /myapplication/ http://127.0.0.1:10000/
>
> ProxyPassReverse /myapplication/ http://localhost:10000/
>
> RewriteRule ^/myapplication$ http://127.0.0.1:10000/
> [P]
> RewriteRule ^/myapplication/(.*) http://127.0.0.1:10000/$1
> [P]

Why RewriteRule rather than ProxyPass? You believe in
complicating things?

> Is it possible to write down to the configuration file of apache following:
> ProxyPassReverse /wbm_(.*)/ http://$1/

Hmm, now that looks like a reason for RewriteRule. You'd use
that to set an env var to use with ProxyPassReverse "interpolate".

--
Nick Kew

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Problem with settings of Proxy

am 22.09.2009 14:59:36 von Petr Hracek

--00504502ca5aaa321304742a2be2
Content-Type: text/plain; charset=UTF-8

Unfortunatelly I have found that we have a system where is installed apache
1.3.
It would be good to have solution for both. Apache 1.3 and Apache 2.2

regards
Petr

2009/9/22 Nick Kew

> Petr Hracek wrote:
>
>> Hello *,
>>
>> sorry for bother you with this question but I would like to ask you if
>> it's possible to setup Proxy as is mentioned below.
>>
>> In the my configuration file of Apache 2.2.10 is for setting up my
>> application.
>> ProxyPassReverse /myapplication/ http://127.0.0.1:10000/ <
>> http://127.0.0.1:10123/>
>> ProxyPassReverse /myapplication/ http://localhost:10000/ <
>> http://localhost:10123/>
>> RewriteRule ^/myapplication$ http://127.0.0.1:10000/ <
>> http://127.0.0.1:10123/> [P]
>> RewriteRule ^/myapplication/(.*) http://127.0.0.1:10000/$1 <
>> http://127.0.0.1:10123/$1> [P]
>>
>
> Why RewriteRule rather than ProxyPass? You believe in
> complicating things?
>
> Is it possible to write down to the configuration file of apache
>> following:
>> ProxyPassReverse /wbm_(.*)/ http://$1/
>>
>
> Hmm, now that looks like a reason for RewriteRule. You'd use
> that to set an env var to use with ProxyPassReverse "interpolate".
>
> --
> Nick Kew
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--00504502ca5aaa321304742a2be2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Unfortunatelly I have found that we have a system where is installed apache=
1.3.
It would be good to have solution for both. Apache 1.3 and Apache =
2.2

regards
Petr

2009/9/22 Nick=
Kew <nick@webthi=
ng.com
>


204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Petr Hracek wrote=
:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>
Hello *,



sorry for bother you with this question but I would like to ask you if it&#=
39;s possible to setup Proxy as is mentioned below.



In the my configuration file of Apache 2.2.10 is for setting up my applicat=
ion.

ProxyPassReverse    /myapplication/     //127.0.0.1:10000/" target=3D"_blank">http://127.0.0.1:10000/ < ef=3D"http://127.0.0.1:10123/" target=3D"_blank">http://127.0.0.1:10123/ >>

ProxyPassReverse    /myapplication/    
//localhost:10000/" target=3D"_blank">http://localhost:10000/ < ef=3D"http://localhost:10123/" target=3D"_blank">http://localhost:10123/ >>

RewriteRule ^/myapplication$
_blank">http://127.0.0.1:10000/ < target=3D"_blank">http://127.0.0.1:10123/> [P]

RewriteRule ^/myapplication/(.*) et=3D"_blank">http://127.0.0.1:10000/$1 < :10123/$1" target=3D"_blank">http://127.0.0.1:10123/$1> [P]




Why RewriteRule rather than ProxyPass?  You believe in

complicating things?




204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is it possible to write down to the configuration file of apache following:=


ProxyPassReverse /wbm_(.*)/ http://$1/




Hmm, now that looks like a reason for RewriteRule.  You'd use

that to set an env var to use with ProxyPassReverse "interpolate"=
..



--

Nick Kew



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

 "   from the digest: cribe@httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.ap=
ache.org


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org






--00504502ca5aaa321304742a2be2--

Re: Problem with settings of Proxy

am 22.09.2009 15:17:36 von Tom Evans

On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:
> Unfortunatelly I have found that we have a system where is installed
> apache 1.3.
> It would be good to have solution for both. Apache 1.3 and Apache 2.2
>
> regards
> Petr

If you take 1.3 and add the missing features, then you would have
2.2 ...

If you really can't update the apache 1.3 to apache 2.2, then you can
run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be
very lightweight and effecient, eg using event MPM etc.

Cheers

Tom


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Problem with settings of Proxy

am 22.09.2009 15:37:39 von Petr Hracek

--001485eb00c9b8ea3204742ab37d
Content-Type: text/plain; charset=UTF-8

Could you please help me how to configure apache so that apache2.2 will work
for my case?

When to user will start URL with https:///wbm_ then new_ip should be called in the new window so that https:///
will be opened.

RewriteRules are:
RewriteRule ^/wbm_(.*)$ http://$1 [P]
RewriteRule ^/wbm_(.*)/(.*) http://$1/$2 [P]

Is it possible to write down to the configuration file of apache following:
ProxyPassReverse /wbm_(.*)/ http://$1/

How to configure it over ProxyPass and ProxyPassReverse?

thank you in advance
Petr
2009/9/22 Tom Evans

> On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:
> > Unfortunatelly I have found that we have a system where is installed
> > apache 1.3.
> > It would be good to have solution for both. Apache 1.3 and Apache 2.2
> >
> > regards
> > Petr
>
> If you take 1.3 and add the missing features, then you would have
> 2.2 ...
>
> If you really can't update the apache 1.3 to apache 2.2, then you can
> run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be
> very lightweight and effecient, eg using event MPM etc.
>
> Cheers
>
> Tom
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--001485eb00c9b8ea3204742ab37d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Could you please help me how to configure apache so that apache2.2 will wor=
k
for my case?

When to user will start URL with https://<ipadd=
ress>/wbm_<new_

ip/
then new_ip sho=
uld be called in the new window so that https://<new_ip>/ will be ope=
ned.



RewriteRules are:
RewriteRule ^/wbm_(.*)$     ht=
tp://$1 [P]
RewriteRule ^/wbm_(.*)/(.*)    http://$1/$2=
  [P]

Is it possible to write down to the configuration file of=
apache following:
ProxyPassReverse /wbm_(.*)/ http://$1/



How to configure it over ProxyPass and ProxyPassReverse?

t=
hank you in advance
Petr
2009/9/22 Tom Eva=
ns <@ =3D"http://googlemail.com">googlemail.com>

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:

> Unfortunatelly I have found that we have a system where is installed r>
> apache 1.3.

> It would be good to have solution for both. Apache 1.3 and Apache 2.2<=
br>
>

> regards

> Petr



If you take 1.3 and add the missing features, then you would have

2.2 ...



If you really can't update the apache 1.3 to apache 2.2, then you can r>
run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be >
very lightweight and effecient, eg using event MPM etc.



Cheers



Tom





------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

  "   from the digest: scribe@httpd.apache.org">users-digest-unsubscribe@httpd.apac he.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--001485eb00c9b8ea3204742ab37d--

Re: Problem with settings of Proxy

am 23.09.2009 12:17:53 von Petr Hracek

--000e0ce044502aa1aa04743c07a7
Content-Type: text/plain; charset=UTF-8

Are there any steps how to dynamically make proxy in Apache?
Let say the I would like to connect to the other servers using proxy.
Servers has DHCP IP addresses and are shown in a web page of Apache2.

One time there are tree servers available and another time there are 10
servers available.
I would like to create Proxy in Apache2 so that
when I enter to the link https:///wbm_/
then new window will be opened with URL https:///

Important is that Apache2 should not be restarted.

Is there any way how to do that dynamically?

thank you in advance
Petr

2009/9/22 Petr Hracek

> Could you please help me how to configure apache so that apache2.2 will
> work
> for my case?
>
> When to user will start URL with https:///wbm_ > ip/
> then new_ip should be called in the new window so that https:///
> will be opened.
>
> RewriteRules are:
> RewriteRule ^/wbm_(.*)$ http://$1 [P]
> RewriteRule ^/wbm_(.*)/(.*) http://$1/$2 [P]
>
> Is it possible to write down to the configuration file of apache following:
> ProxyPassReverse /wbm_(.*)/ http://$1/
>
> How to configure it over ProxyPass and ProxyPassReverse?
>
> thank you in advance
> Petr
> 2009/9/22 Tom Evans
>
> On Tue, 2009-09-22 at 14:59 +0200, Petr Hracek wrote:
>> > Unfortunatelly I have found that we have a system where is installed
>> > apache 1.3.
>> > It would be good to have solution for both. Apache 1.3 and Apache 2.2
>> >
>> > regards
>> > Petr
>>
>> If you take 1.3 and add the missing features, then you would have
>> 2.2 ...
>>
>> If you really can't update the apache 1.3 to apache 2.2, then you can
>> run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be
>> very lightweight and effecient, eg using event MPM etc.
>>
>> Cheers
>>
>> Tom
>>
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

--000e0ce044502aa1aa04743c07a7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Are there any steps how to dynamically make proxy in Apache?
Let say the=
I would like to connect to the other servers using proxy.
Servers has D=
HCP IP addresses and are shown in a web page of Apache2.

One time th=
ere are tree servers available and another time there are 10 servers availa=
ble.

I would like to create Proxy in Apache2 so that
when I enter to the link=
https://<ipaddress>/wbm_<ip2>/
then new window will be open=
ed with URL https://<ip2>/

Important is that Apache2 should no=
t be restarted.


Is there any way how to do that dynamically?

thank you in advanc=
e
Petr

2009/9/22 Petr Hracek =3D"ltr"><&g=
t;


204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Could you please =
help me how to configure apache so that apache2.2 will work
for my case?=



When to user will start URL with https://<ipaddress>/wbm_<=
new_
ip/
then new_ip should be called in the=
new window so that https://<new_ip>/ will be opened.



RewriteRules are:
RewriteRule ^/wbm_(.*)$     ht=
tp://$1 [P]
RewriteRule ^/wbm_(.*)/(.*)    http://$1/$2=
  [P]

Is it possible to write down to t=
he configuration file of apache following:

ProxyPassReverse /wbm_(.*)/ http://$1/



How to configure it over ProxyPass and ProxyPassReverse? >
thank you in advance
Petr
2009/9/22 T=
om Evans < k">tevans.uk@google=
mail.com
>



204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2009=
-09-22 at 14:59 +0200, Petr Hracek wrote:

> Unfortunatelly I have found that we have a system where is installed r>
> apache 1.3.

> It would be good to have solution for both. Apache 1.3 and Apache 2.2<=
br>
>

> regards

> Petr



If you take 1.3 and add the missing features, then you would have

2.2 ...



If you really can't update the apache 1.3 to apache 2.2, then you can r>
run apache 2.2 in front of 1.3, and proxy to it. Apache like this can be >
very lightweight and effecient, eg using event MPM etc.



Cheers



Tom





------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

  "   from the digest: scribe@httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.a=
pache.org


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org








--000e0ce044502aa1aa04743c07a7--